package utils;

import User.ProxyUser;
import User.User;
import User.factory.AdminUserFactory;
import User.factory.IUserFactory;

public class LibrarySystem {
    public static void main(String[] args) {
        IUserFactory adminUserFactory = new AdminUserFactory();
        User adminUser = adminUserFactory.createUser("刘备", 1);
        IUserFactory normalUserFactory = new NormalUserFactory();
        User normalUser1 = normalUserFactory.createUser("关⽻", 2);
        User normalUser2 = normalUserFactory.createUser("张⻜", 3);

        ProxyUser proxyUserAdmin = new ProxyUser(adminUser);
        ProxyUser proxyUserNormalG = new ProxyUser(normalUser1);
        ProxyUser proxyUserNormalZ = new ProxyUser(normalUser2);
    }
}
